$OpenBSD: patch-Makefile_in,v 1.4 2015/06/16 12:14:43 jca Exp $
--- Makefile.in.orig	Sat Jun 13 15:27:59 2015
+++ Makefile.in	Sat Jun 13 15:28:45 2015
@@ -9,7 +9,7 @@ MANDIR=@mandir@
 LIBDIR=@libdir@
 INCDIR=@prefix@/include
 
-PGMS=markdown
+PGMS=discount
 SAMPLE_PGMS=mkd2html makepage
 @THEME@SAMPLE_PGMS+= theme
 MKDLIB=libmarkdown
@@ -52,7 +52,8 @@ install.man:
 	@INSTALL_DIR@ $(DESTDIR)$(MANDIR)/man7
 	@INSTALL_DATA@ markdown.7 mkd-extensions.7 $(DESTDIR)$(MANDIR)/man7
 	@INSTALL_DIR@ $(DESTDIR)$(MANDIR)/man1
-	@INSTALL_DATA@ markdown.1 $(DESTDIR)$(MANDIR)/man1
+	@mv markdown.1 discount.1
+	@INSTALL_DATA@ discount.1 $(DESTDIR)$(MANDIR)/man1
 
 install.everything: install install.man
 
@@ -84,8 +85,8 @@ blocktags: mktags
 mkd2html:  mkd2html.o $(MKDLIB) mkdio.h
 	$(CC) $(CFLAGS) $(LFLAGS) -o mkd2html mkd2html.o -lmarkdown @LIBS@
 
-markdown: main.o pgm_options.o $(MKDLIB)
-	$(CC) $(CFLAGS) $(LFLAGS) -o markdown main.o pgm_options.o -lmarkdown @LIBS@
+discount: main.o pgm_options.o $(MKDLIB)
+	$(CC) $(CFLAGS) $(LFLAGS) -o discount main.o pgm_options.o -lmarkdown @LIBS@
 	
 makepage:  makepage.c pgm_options.o $(MKDLIB) mkdio.h
 	$(CC) $(CFLAGS) $(LFLAGS) -o makepage makepage.c pgm_options.o -lmarkdown @LIBS@
